package com.cz.datafetcher.common;

import lombok.Data;

@Data
public class SysError extends Exception {
    private int code;

    public SysError() {
        super("");
        this.code=500;
    }

    public SysError(int code) {
        this.code = code;
    }

    public SysError(String message) {
        super(message);
        this.code=500;
    }

    public SysError(int code,String message) {
        super(message);
        this.code = code;
    }
}
